package com.sharer.last.wrapper;

import com.sharer.last.base.support.BaseEntityWrapper;
import com.sharer.last.model.po.FriendPO;
import com.sharer.last.model.vo.friend.FriendVO;
import com.sharer.last.utils.BeanUtil;
import org.springframework.stereotype.Component;

/**
 * 文件注释地方
 *
 * @ClassName FriendWrapper
 * @Author WangJin
 * @Date 2023/06/09/10:43
 * @Description
 * @Version 1.0
 */
@Component
public class FriendWrapper extends BaseEntityWrapper<FriendPO, FriendVO> {
    /**
     * 单个实体类包装
     *
     * @param entity
     * @return
     */
    @Override
    public FriendVO entityVO(FriendPO entity) {
        FriendVO vo = BeanUtil.copy(entity, FriendVO.class);
        return vo;
    }
}
